package org.example.curriculum_design_6_16.common.business;

/**
 * 参数校验异常
 */
public class ValidationException extends BusinessException {
    public ValidationException(String errorCode, String message) {
        super(errorCode, message);
    }

    public static ValidationException of(String field, String message) {
        return new ValidationException("VALID_001", String.format("字段[%s]校验失败: %s", field, message));
    }
}